package challenge;

import java.io.*;

public class WhatRoopRead {
	
	
	
	public static void main(String[] args){
		while(true){
			System.out.println("入力テスト");
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			try{
				String line = br.readLine();
				if(line.equals("end")){
					break;
				}
				System.out.println("入力された値は\" "+line+" \"  endで終了します");
			}catch(IOException e){
				System.out.println(e);
			}catch(NumberFormatException e){
				System.out.println(e);
			}
		}
	}
}
